<template>
  <div class="container">
      <button @click="showdiv">显示</button>
       <button @click="showdivII">隐藏</button>
       <div v-if="showDialog">123s</div>

  </div>
</template>
<script>
export default {
  name: '',
  data () {
    return {
      showDialog: true
    }
  },
  methods: {
    showdivII () {
      this.showDialog = false
    },
    showdiv () {
      this.showDialog = true
    }
  }
}
</script>
<style scoped lang="scss"></style>
